Optimal. Leaf size=73 \[ -\frac {1}{3} i \text {ArcCos}(a x)^3+\text {ArcCos}(a x)^2 \log \left (1+e^{2 i \text {ArcCos}(a x)}\right )-i \text {ArcCos}(a x) \text {PolyLog}\left (2,-e^{2 i \text {ArcCos}(a x)}\right )+\frac {1}{2} \text {PolyLog}\left (3,-e^{2 i \text {ArcCos}(a x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {4722, 3800,
2221, 2611, 2320, 6724} \begin {gather*} -i \text {ArcCos}(a x) \text {Li}_2\left (-e^{2 i \text {ArcCos}(a x)}\right )+\frac {1}{2} \text {Li}_3\left (-e^{2 i \text {ArcCos}(a x)}\right )-\frac {1}{3} i \text {ArcCos}(a x)^3+\text {ArcCos}(a x)^2 \log \left (1+e^{2 i \text {ArcCos}(a x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2320
Rule 2611
Rule 3800
Rule 4722
Rule 6724
Rubi steps
\begin {align*} \int \frac {\cos ^{-1}(a x)^2}{x} \, dx &=-\text {Subst}\left (\int x^2 \tan (x) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-\frac {1}{3} i \cos ^{-1}(a x)^3+2 i \text {Subst}\left (\int \frac {e^{2 i x} x^2}{1+e^{2 i x}} \, dx,x,\cos ^{-1}(a x)\right )\\ &=-\frac {1}{3} i \cos ^{-1}(a x)^3+\cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-2 \text {Subst}\left (\int x \log \left (1+e^{2 i x}\right ) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-\frac {1}{3} i \cos ^{-1}(a x)^3+\cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-i \cos ^{-1}(a x) \text {Li}_2\left (-e^{2 i \cos ^{-1}(a x)}\right )+i \text {Subst}\left (\int \text {Li}_2\left (-e^{2 i x}\right ) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-\frac {1}{3} i \cos ^{-1}(a x)^3+\cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-i \cos ^{-1}(a x) \text {Li}_2\left (-e^{2 i \cos ^{-1}(a x)}\right )+\frac {1}{2} \text {Subst}\left (\int \frac {\text {Li}_2(-x)}{x} \, dx,x,e^{2 i \cos ^{-1}(a x)}\right )\\ &=-\frac {1}{3} i \cos ^{-1}(a x)^3+\cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-i \cos ^{-1}(a x) \text {Li}_2\left (-e^{2 i \cos ^{-1}(a x)}\right )+\frac {1}{2} \text {Li}_3\left (-e^{2 i \cos ^{-1}(a x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 73, normalized size = 1.00 \begin {gather*} -\frac {1}{3} i \text {ArcCos}(a x)^3+\text {ArcCos}(a x)^2 \log \left (1+e^{2 i \text {ArcCos}(a x)}\right )-i \text {ArcCos}(a x) \text {PolyLog}\left (2,-e^{2 i \text {ArcCos}(a x)}\right )+\frac {1}{2} \text {PolyLog}\left (3,-e^{2 i \text {ArcCos}(a x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 101, normalized size = 1.38
method | result | size |
derivativedivides | \(-\frac {i \arccos \left (a x \right )^{3}}{3}+\arccos \left (a x \right )^{2} \ln \left (1+\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )-i \arccos \left (a x \right ) \polylog \left (2, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )+\frac {\polylog \left (3, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )}{2}\) | \(101\) |
default | \(-\frac {i \arccos \left (a x \right )^{3}}{3}+\arccos \left (a x \right )^{2} \ln \left (1+\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )-i \arccos \left (a x \right ) \polylog \left (2, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )+\frac {\polylog \left (3, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )}{2}\) | \(101\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {acos}^{2}{\left (a x \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {acos}\left (a\,x\right )}^2}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________